//
//  VocalConcertVC.m
//  MoreStarLiveTelecast
//
//  Created by babbage on 16/8/17.
//  Copyright © 2016年 babbage. All rights reserved.
//

#import "VocalConcertVC.h"

@interface VocalConcertVC ()

@end

@implementation VocalConcertVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor colorWithRed:(arc4random()%256)/255.0 green:(arc4random()%256)/255.0 blue:(arc4random()%256)/255.0 alpha:1];
}
-(void)viewWillAppear:(BOOL)animated
{
    
    UIButton *confirm_btn=[UIButton buttonWithType:UIButtonTypeSystem];
    [confirm_btn setTitle:@"上传" forState:UIControlStateNormal];
    confirm_btn.layer.borderWidth=1;
    confirm_btn.layer.borderColor=[UIColor redColor].CGColor;
    confirm_btn.layer.cornerRadius=4;
    [confirm_btn addTarget:self action:@selector(text) forControlEvents:UIControlEventTouchUpInside];
    confirm_btn.frame=CGRectMake(0, 0, 100, 50);
    confirm_btn.center=CGPointMake([UIScreen mainScreen].bounds.size.width*0.5, [UIScreen mainScreen].bounds.size.height*0.5);
    [self.view addSubview:confirm_btn];
}
-(void)text
{
    GJCFNotificationPostObjUserInfo(UserWantLogin, self, @{@"userName":@"zhujie"});
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
